package com.aspose.cells;

public class MsoTextFrame {
   private Shape a;

   MsoTextFrame(Shape shape) {
      this.a = shape;
   }

   zash a() {
      return this.a.N().c();
   }

   public boolean getAutoSize() {
      return this.a().a(191, 1, false);
   }

   public void setAutoSize(boolean value) {
      this.a.a(128L);
      this.a().b(191, 1, value);
   }

   void a(boolean var1) {
      this.a.a(128L);
      this.a().b(191, 1, var1);
   }

   public boolean isAutoMargin() {
      return this.a().a(191, 3, false);
   }

   public void setAutoMargin(boolean value) {
      this.a().b(191, 3, value);
   }

   int b() {
      return this.a().c(129, (int)(7.2D * zml.i + 0.5D));
   }

   void a(int var1) {
      this.a().a(129, 0, var1);
   }

   public double getLeftMarginPt() {
      return (double)this.b() / zml.i;
   }

   public void setLeftMarginPt(double value) {
      this.a((int)(value * zml.i + 0.5D));
   }

   int c() {
      return this.a().c(131, (int)(7.2D * zml.i + 0.5D));
   }

   void b(int var1) {
      this.a().a(131, 0, var1);
   }

   public double getRightMarginPt() {
      return (double)this.c() / zml.i;
   }

   public void setRightMarginPt(double value) {
      this.b((int)(value * zml.i + 0.5D));
   }

   int d() {
      return this.a().c(130, (int)(3.6D * zml.i + 0.5D));
   }

   void c(int var1) {
      this.a().a(130, 0, var1);
   }

   public double getTopMarginPt() {
      return (double)this.d() / zml.i;
   }

   public void setTopMarginPt(double value) {
      this.c((int)(value * zml.i + 0.5D));
   }

   int e() {
      return this.a().c(132, (int)(3.6D * zml.i + 0.5D));
   }

   void d(int var1) {
      this.a().a(132, 0, var1);
   }

   public double getBottomMarginPt() {
      return (double)this.e() / zml.i;
   }

   public void setBottomMarginPt(double value) {
      this.d((int)(value * zml.i + 0.5D));
   }
}
